/**
 * Created with CLion.
 * Description:
 * User: loong
 * Date: 2024/3/12
 * Time: 9:29
 */

#include "Content.h"

namespace CES {
    namespace Internal {
        Content::~Content()
        {
            allService_.clear();
        }

        void Content::RegistryService(const QString & _serviceId, Core::IServiceSPtr _service)
        {
            allService_[_serviceId] = _service;
        }

        void Content::UnRegistryService(const QString & _serviceId)
        {
            allService_.remove(_serviceId);
        }

        Core::IServiceSPtr Content::GetService(const QString & _serviceId)
        {
            return allService_.value(_serviceId, nullptr);
        }
    }// namespace Internal
}// namespace CES